/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model.map.plugin;

import java.awt.Image;
import java.util.ArrayList;
import model.game.GameInterface;
import model.map.GridMap;
import model.utility.ImageUtility;

/**
 *
 * @author dolphinigle
 */
public class Field1 extends GridMap {

  private static String[] map =
 //01234567890123456 = 17 columns
 {"XXXXXXXXXXXXXXXXX", // 0
  "XOOOOOX.C.XOOOOOX", // 1
  "XOOOOOXX.XXOOOOOX", // 2
  "XTOOOOOX.XOOOOOOX", // 3
  "XOOOOOOO.OOOOOOOX", // 4
  "XOOOOOOOOOOOOOOOX", // 5
  "XOOOOODOOODOOOOOX", // 6
  "XOOXXXXOXOXXXXOOX", // 7
  "XOOOOOOOOOOOOOOOX", // 8
  "XOOOOOOO.OOOOOOOX", // 9
  "XXXXXXXX.XXXXXXXX", // 10
  "XXXXXXXXXXXXXXXXX"  // 11
                       // =12 rows
  };

  /**
   * Constructor
   */
  public Field1(GameInterface game) {
    super(game, map);
    //setTeleportDestinations();
  }

  @Override
  public String getName() {
    return "Field";
  }

  @Override
  public String getDescription() {
    return "Your main defense area";
  }

  @Override
  public Image getImage() {
    return ImageUtility.loadImage("resources/pictures/field/backdrop.jpg");
  }

  @Override
  public ArrayList<String> getPossibleTeleportDestinations() {
    ArrayList<String> destinations = new ArrayList<String>();
    destinations.add("Shop");
    destinations.add("House");
    return destinations;
  }

  @Override
  public int getTeleportXCoordinate(String destination) {
    if (destination.equals("Shop")) return 2;
    if (destination.equals("House")) return 2;
    assert false;
    return 0;
  }

  @Override
  public int getTeleportYCoordinate(String destination) {
    if (destination.equals("Shop")) return 2;
    if (destination.equals("House")) return 2;
    assert false;
    return 0;
  }

  @Override
  public int getOneCellSizeInPixel() {
    return 64;
  }

  @Override
  public boolean isShop() {
    return true;
  }

  @Override
  public boolean isHouse() {
    return true;
  }

}
